
.docs-video-inner {
  transition: all 150ms ease-in-out;
  .expand-contract, .close-button {
    position: absolute;
    color: $black;
    display: none;
    top: -4px;
    transform: translateY(-100%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .expand-contract {
    right: 30px;
  }

  .close-button {
    right: 0px;
  }
}

@include breakpoint(small only) {
  .docs-mobile-video {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index:100;
  }
}

// Move the video for desktops
@include breakpoint(medium up) {
  .docs-video-inner.is-stuck.autostick {
    position: fixed;
    z-index: 10000;
    right: 2%;
    top: auto;
    bottom: 20px;
    transform: none;
    width: 200px;
    border-radius: 0px;
    display: block;
    box-shadow: 0 2px 20px 0 rgba(0,0,0,0.30);
    .close-button, .expand-contract {
      display: block;
    }
    .close-button {
      background-image: url('../img/icons/docked-close-button.svg')
    }
    .expand-contract {
      background-image: url('../img/icons/docked-expand-button.svg')
    }
    &.expanded {
      top: 50%;
      bottom: auto;
      left: 50%;
      width: 640px;
      transform: translate3d(-50%, -50%, 0);
      z-index:1001;
      .close-button, .expand-contract {
        height: 30px;
        width: 30px;
      }
      .close-button {
        background-image: url('../img/icons/modal-close-button.svg');
      }
      .expand-contract {
        background-image: url('../img/icons/modal-collapse-button.svg');
        right: 40px;
      }
    }
  }
  .video-overlay.expanded.is-stuck {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100vw;
    height: 100vh;
    z-index:1000;
  }

}
// fullscreen vid for mobile
@include breakpoint(small only) {
  .docs-video-inner.playing {
    position: fixed;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 15px;
    .close-button {
      font-size: 0.8rem;
      right: 4px;
      top: 4px;
      color: $black;
    }
  }
}

